package com.ruoyi.basebill.service;

import com.ruoyi.basebill.domain.OmsDeliverbill;
import com.ruoyi.basebill.domain.OmsReceiptbill;
import com.ruoyi.basebill.domain.OmsSalereturnbill;
import com.ruoyi.basebill.domain.OmsTransferbill;

/**
 * @projectName: wfz
 * @package: com.ruoyi.basebill.service
 * @className: IJszxApiService
 * @author: Eric
 * @description: TODO
 * @date: 2023/3/7 15:56
 * @version: 1.0
 */
public interface IJszxApiService {
    OmsTransferbill getTransferBill(OmsTransferbill omsTransferbill);
    OmsTransferbill getTransferBillByWdt(OmsTransferbill omsTransferbill);

    /**
     * 校验调拨单
     * @param omsTransferbill
     * @return
     */
    StringBuffer checkBill(OmsTransferbill omsTransferbill);

    /**
     * 校验收货确认
     * @param omsReceiptbill
     * @return
     */
    StringBuffer checkBill(OmsReceiptbill omsReceiptbill);

    /**
     * 校验销售退货
     * @param omsSalereturnbill
     * @return
     */
    StringBuffer checkBill(OmsSalereturnbill omsSalereturnbill);

    /**
     * 校验发货确认
     * @param omsDeliverbill
     * @return
     */
    StringBuffer checkBill(OmsDeliverbill omsDeliverbill);

    //初始化单据
    StringBuffer calculateReturnbill(OmsSalereturnbill omsSalereturnbill);
}
